package top.jiangqiang.qianyi.common.id;

/**
 * 获取ID的工具类
 */
public class IdUtil {
    /**
     * @return 获取唯一UUID
     */
    public static String nextUUID() {
        return DefaultIDGenerator.getInstance().nextUUID();
    }

    /**
     * @return 获取数值型ID
     */
    public static long nextId() {
        return DefaultIDGenerator.getInstance().nextId();
    }
}
